var express = require('express');
var router = express.Router();
var good= require('../controllers/goodsController');
router.get('/get/all',good.getAllGoods);
router.get('/get/sort/:uid/:page/:size',good.getSortGoods)
router.get('/del/good/:id',good.delGoods)
router.post('/add/good',good.addGoods)
router.post('/revamp/good',good.revampGoods)
router.post('/like/good',good.likeGoods)
router.get('/get/class/good/:id/:page/:size',good.getClassGoods)
router.get('/like/class/good',good.getClassGoodsLike)
router.get('/get/id/good/:id',good.getIdGoods)



module.exports=router